package com.trw.trp.bean;

import java.util.Date;

public class SearchCriteriaBean {
	public enum SearchType {
		contains, showAll, equals, startWith
	}

	private Date startTime;
	private Date endTime;
	private String orderNumber;
	private String customer;
	private String project;
	private String product;
	private String projectNum;
	private boolean detail;
	private int maxStatus = -999;
	private int minStatus = -999;

	private SearchType searchType;
	private long userId = -1;
	private long teUserId = -1;

	public long getTeUserId() {
		return teUserId;
	}

	public void setTeUserId(long teUserId) {
		this.teUserId = teUserId;
	}

	public String getCustomer() {
		return customer;
	}

	public void setCustomer(String customer) {
		this.customer = customer;
	}

	public String getProject() {
		return project;
	}

	public void setProject(String project) {
		this.project = project;
	}

	public String getProduct() {
		return product;
	}

	public void setProduct(String product) {
		this.product = product;
	}

	public String getProjectNum() {
		return projectNum;
	}

	public void setProjectNum(String projectNum) {
		this.projectNum = projectNum;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}

	public SearchType getSearchType() {
		return searchType;
	}

	public void setSearchType(SearchType searchType) {
		this.searchType = searchType;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public boolean isDetail() {
		return detail;
	}

	public void setDetail(boolean detail) {
		this.detail = detail;
	}

	public int getMaxStatus() {
		return maxStatus;
	}

	public void setMaxStatus(int maxStatus) {
		this.maxStatus = maxStatus;
	}

	public int getMinStatus() {
		return minStatus;
	}

	public void setMinStatus(int minStatus) {
		this.minStatus = minStatus;
	}

	@Override
	public String toString() {
		return "SearchCriteriaBean [startTime=" + startTime + ", endTime="
				+ endTime + ", orderNumber=" + orderNumber + ", customer="
				+ customer + ", project=" + project + ", product=" + product
				+ ", projectNum=" + projectNum + ", detail=" + detail
				+ ", maxStatus=" + maxStatus + ", minStatus=" + minStatus
				+ ", searchType=" + searchType + ", userId=" + userId
				+ ", teUserId=" + teUserId + "]";
	}

}
